home *** CD-ROM | disk | FTP | other *** search
/ Freelog Special Edition 11 / FreelogHS11.iso / Démos&Merveilles / Realtime Radiosity 2 / rr2.plg < prev    next >
Text File  |  2000-09-16  |  18KB  |  571 lines

  1. ########################################################
  2. #### rr2 / broncs -> sagvan script by redoks^broncs ####
  3. ########################################################
  4. #
  5. ############ const.plg ############
  6. const.plg:script{
  7. ##################################################
  8. #           standard constants database          #
  9. ##################################################
  10. # oscilator
  11. sinus=constant(k=1);
  12. square=constant(k=2);
  13. saw=constant(k=0);
  14. timer=constant(k=3);
  15. clock=constant(k=4);
  16. # fork & selector
  17. automat=constant(k=0);
  18. handler=constant(k=1);
  19. switch=constant(k=2);
  20. # mouse
  21. axis_x=constant(k=0);
  22. axis_y=constant(k=1);
  23. # plazma
  24. solid=constant(k=0);
  25. rgb=constant(k=1);
  26. # path
  27. opened=constant(k=0);
  28. closed=constant(k=1);
  29. linear_opened=constant(k=2);
  30. linear_closed=constant(k=3);
  31. # mixer
  32. copy=constant(k=2);
  33. add=constant(k=3);
  34. sub=constant(k=17);
  35. clear=constant(k=7);
  36. alpha=constant(k=6);
  37. invert=constant(k=12);
  38. stream=constant(k=0);
  39. bump=constant(k=13);
  40. ver_blur=constant(k=10);
  41. hor_blur=constant(k=11);
  42. blur=constant(k=21);
  43. texture=constant(k=1);
  44. transluency=constant(k=4);
  45. transparency=constant(k=5);
  46. transparency_add=constant(k=8);
  47. translusparency=constant(k=9);
  48. # text
  49. left=constant(k=0);
  50. right=constant(k=1);
  51. center=constant(k=2);
  52. # light
  53. sqrtdiv=constant(k=0);
  54. sqrt=constant(k=1);
  55. div=constant(k=2);
  56. sqrtdiv_add=constant(k=3);
  57. sqrt_add=constant(k=4);
  58. div_add=constant(k=5);
  59. # mirror
  60. quarter=constant(k=2);
  61. hor_half=constant(k=0);
  62. ver_half=constant(k=1);
  63. flip=constant(k=3);
  64. # loop
  65. clip=constant(k=0);
  66. resize=constant(k=1);
  67. # warper
  68. shaded=constant(k=1);
  69. normal=constant(k=0);
  70. # mapper
  71. tunnel=constant(k=1);
  72. plane=constant(k=0);
  73. sphere=constant(k=2);
  74. shaded_plane=constant(k=3);
  75. shaded_tunnel=constant(k=4);
  76. shaded_sphere=constant(k=5);
  77. # object
  78. flat=constant(k=1);
  79. wire=constant(k=0);
  80. phong=constant(k=2);
  81. glenz=constant(k=3);
  82. vector=constant(k=4);
  83. gouraud=constant(k=5);
  84. flat_texture=constant(k=6);
  85. env=constant(k=7);
  86. phong_texture=constant(k=8);
  87. gouraud_texture=constant(k=9);
  88. circle=constant(k=10);
  89. # flubber
  90. basic=constant(k=0);
  91. light=constant(k=1);
  92. zbuffer=constant(k=2);
  93. light_zbufer=constant(k=3);
  94. #
  95. };
  96. ############ broncs.plg ############
  97. broncs.plg:script{
  98. <const.plg>
  99. #
  100. t1=texture(in=bronsc4.png);
  101. t2=texture(in=bronsc5.png);
  102. t3=texture(in=bronsc1.png);
  103. t4=texture(in=bronsc3.png);
  104. t5=texture(in=bronsc2.png);
  105. #
  106. clk=oscilator(fce=clock);
  107. io=oscilator(amp=128,add=128,freq=0.5);
  108. bo=path(time=clk,type=linear_opened,num=6,y=20,15,10,7,5,0);
  109. sp=path(time=clk,type=linear_opened,num=3,y=255,128,0);
  110. yp=path(time=clk,num=6,y=-200,-100,-50,0,10,0);
  111. #
  112. bkg=mixer(tex=t1,op=copy);
  113. trans=mixer(in=bkg,tex=t2,op=transluency,int=io);
  114. #
  115. tt5=mixer(in=kwin,tex=t5,op=sub,int=255);
  116. cpyt3=mixer(tex=t3,op=copy);
  117. blr=mixer(in=cpyt3,op=ver_blur,int=bo);
  118. mixblurr=mixer(in=bwin,tex=blr,op=sub,int=255);
  119. tt4=mixer(in=wwin,tex=t4,op=translusparency,int=128);
  120. wwin=window(in=trans,win=tt4,x=30,y=95,w=260,h=80);
  121. bwin=window(in=wwin,win=mixblurr,x=42,y=94,w=250,h=75);
  122. kwin=window(in=bwin,win=tt5,x=100,y=yp,w=140,h=115);
  123. output=screen(in=kwin,shade=sp);
  124. #
  125. };
  126. ############ disko.plg ############
  127. disko.plg:script{
  128. <const.plg>
  129. #
  130. clk=oscilator(fce=clock);
  131. ct=oscilator(fce=clock,freq=5);
  132. ot=oscilator(fce=clock,freq=25);
  133. op=oscilator(fce=saw,amp=100,freq=0.2);
  134. rr=scene(fps=70,camera=0,xfov=128,yfov=128,name=disko,cf=ct,of=op);
  135. sh=path(time=clk,type=linear_opened,num=2,y=-255,0);
  136. output:screen(in=rr,shade=sh);
  137. #
  138. };
  139. ############ dvere.plg ############
  140. dvere.plg:script{
  141. <const.plg>
  142. #
  143. clk=oscilator(fce=clock);
  144. ct=oscilator(fce=clock,freq=6);
  145. ot=oscilator(fce=clock,freq=6);
  146. cls=mixer(op=clear);
  147. oclk=oscilator(fce=clock,freq=0.1);
  148. cclk=oscilator(fce=clock,freq=0.06);
  149. op=path(time=oclk,type=linear_opened,num=3,y=0,195,0);
  150. cp=path(time=cclk,type=linear_closed,num=2,y=0,199);
  151. rr=scene(in=cls,fps=70,camera=0,
  152. xfov=128,yfov=128,name=dvere,cf=cp,of=op);
  153. sh=path(time=clk,type=linear_opened,num=2,y=-255,0);
  154. output:screen(in=rr,shade=sh);
  155. #output:screen(in=rr);
  156. #
  157. };
  158. ############ jidelna.plg ############
  159. jidelna.plg:script{
  160. <const.plg>
  161. #
  162. clk=oscilator(fce=clock);
  163. ct=oscilator(fce=clock,freq=4);
  164. ot=oscilator(fce=clock,freq=60);
  165. rr=scene(fps=70,camera=0,xfov=128,yfov=128,name=jidelna,cf=ct,of=ot);
  166. sh=path(time=clk,type=linear_opened,num=2,y=-255,0);
  167. output:screen(in=rr,shade=sh);
  168. #
  169. };
  170. ############ kola.plg ############
  171. kola.plg:script{
  172. <const.plg>
  173. #
  174. clk=oscilator(fce=clock);
  175. ct=oscilator(fce=clock,freq=3);
  176. ot=oscilator(fce=clock,freq=20);
  177. rr=scene(fps=70,camera=0,xfov=128,yfov=128,name=kola,cf=ct,of=ot);
  178. sh=path(time=clk,type=linear_opened,num=2,y=-255,0);
  179. output:screen(in=rr,shade=sh);
  180. #
  181. };
  182. ############ p_disko.plg ############
  183. p_disko.plg:script{
  184. <const.plg>
  185. #
  186. tb=texture(in=future1.png);
  187. tf=texture(in=future2.png);
  188. pclk=oscilator(fce=clock,freq=0.2);
  189. pclk2=oscilator(fce=clock,freq=0.2,phase=0.5);
  190. clk=oscilator(fce=clock);
  191. ct=oscilator(fce=clock,freq=10);
  192. ot=oscilator(fce=clock,freq=20);
  193. #cls=mixer(op=clear,red=255,green=255,blue=255);
  194. cpy=mixer(tex=tb,op=copy);
  195. #
  196. io=path(time=clk,type=linear_closed,num=2,y=0,255);
  197. xp=path(time=clk,type=linear_opened,num=4,y=-320,-160,-80,0);
  198. #
  199. cls=mixer(tex=s1,op=copy);
  200. #tmix=mixer(in=twin,tex=tt,op=transluency,int=io);
  201. #twin=window(in=rrwin,win=tmix,h=35);
  202. #
  203. spc=path(time=clk,num=4,y=100,50,25,0);
  204. title=text(in=rrwin,str=our_future_is_black,r=0,g=0,b=0,
  205. x=80,y=20,space=spc,org=left,font=winds.fnt);
  206. #
  207. transmix=mixer(in=cls,tex=tf,op=transparency,int=64);
  208. cls=window(in=title,win=transmix,x=xp);
  209. #
  210. frm=path(time=pclk,type=linear_closed,num=2,y=0,7);
  211. yp=path(time=pclk,type=linear_opened,num=2,y=300,0);
  212. #
  213. rrart=art(id=1,in=rrwin,camera=1,name=disko.bzp,cf=ct,of=ot);
  214. rrwin=window(in=cpy,win=rrart,x=100,y=100,h=200);
  215. #
  216. wirez=cad(in=cls,ani=panacek.cad,fnt=num.fnt,x=170,y=-20,
  217. scale=3,frame=frm,sg=128,fr=128,li=-128);
  218. #
  219. of=oscilator(fce=clock,freq=2);
  220. aa=oscilator(fce=0,amp=6.28,freq=0.1);
  221. #
  222. vec=object(in=wirez,a=aa,b=aa,c=aa,obj=boxik.vec,
  223. rr=16,gg=16,bb=16,frame=of,type=wire,x=-200,y=-200,z=-100);
  224. #
  225. sp=path(time=clk,type=linear_opened,num=2,y=255,0);
  226. output=screen(in=vec,shade=sp);
  227. #
  228. };
  229. ############ p_dvere.plg ############
  230. p_dvere.plg:script{
  231. <const.plg>
  232. #
  233. tb=texture(in=c2.png);
  234. tf=texture(in=c1.png);
  235. tt=texture(in=c3.png);
  236. #
  237. pclk=oscilator(fce=clock,freq=0.2);
  238. pclk2=oscilator(fce=clock,freq=0.2,phase=0.5);
  239. clk=oscilator(fce=clock);
  240. ct=oscilator(fce=clock,freq=10);
  241. ot=oscilator(fce=clock,freq=20);
  242. #cls=mixer(op=clear,red=255,green=255,blue=255);
  243. cpy=mixer(tex=tb,op=copy);
  244. #
  245. io=path(time=clk,type=linear_closed,num=2,y=0,255);
  246. yp=path(time=pclk,type=linear_opened,num=2,y=300,2);
  247. #
  248. cls=mixer(tex=s1,op=copy);
  249. tmix=mixer(in=twin,tex=tt,op=transluency,int=io);
  250. twin=window(in=rrwin,win=tmix,x=55,y=30,w=150,h=20);
  251. #
  252. transmix=mixer(in=cls,tex=tf,op=transparency,int=64);
  253. cls=window(in=twin,win=transmix,y=yp);
  254. #
  255. frm=path(time=pclk,type=linear_closed,num=2,y=0,4);
  256. #
  257. rrart=art(id=4,in=rrwin,camera=1,name=dvere.bzp,cf=ct,of=ot);
  258. rrwin=window(in=cpy,win=rrart,x=-50,y=-30,h=200);
  259. #
  260. wirez=cad(in=cls,ani=domecek.cad,fnt=num.fnt,
  261. y=70,scale=3,frame=frm,sg=128,fr=128,li=220);
  262. #
  263. of=oscilator(fce=clock,freq=2);
  264. aa=oscilator(fce=0,amp=6.28,freq=0.1);
  265. #
  266. vec1=object(in=wirez,a=aa,b=aa,c=aa,obj=koules.vec,
  267. rr=16,gg=16,bb=16,frame=of,type=circle,x=200,y=-300,z=100);
  268. #
  269. vec2=object(in=vec1,a=aa,b=aa,c=aa,obj=boxik.vec,
  270. rr=16,gg=16,bb=16,frame=of,type=circle,x=300,y=300,z=150);
  271. #
  272. sp=path(time=clk,type=linear_opened,num=2,y=255,0);
  273. output=screen(in=vec2,shade=sp);
  274. #
  275. };
  276. ############ p_jidel.plg ############
  277. p_jidel.plg:script{
  278. <const.plg>
  279. #
  280. tb=texture(in=family.png);
  281. pclk=oscilator(fce=clock,freq=0.2);
  282. pclk2=oscilator(fce=clock,freq=0.2,phase=0.5);
  283. clk=oscilator(fce=clock);
  284. ct=oscilator(fce=clock,freq=10);
  285. ot=oscilator(fce=clock,freq=20);
  286. #
  287. io=path(time=clk,type=linear_closed,num=2,y=0,255);
  288. yp=path(time=clk,type=linear_opened,num=2,y=300,0);
  289. #
  290. cls=mixer(tex=tb,op=copy);
  291. #
  292. frm=path(time=pclk,type=linear_closed,num=2,y=0,10);
  293. yp=path(time=pclk,type=linear_opened,num=2,y=300,60);
  294. #
  295. rrart=art(id=2,in=rrwin,camera=1,name=jidelna.bzp,cf=ct,of=ot);
  296. rrwin=window(in=cls,win=rrart,y=-40,h=200);
  297. #
  298. wirez=cad(in=rrwin,ani=auticko.cad,fnt=num.fnt,
  299. y=50,scale=2.5,frame=frm,sg=190,fg=255,fr=128,li=200);
  300. #
  301. of=oscilator(fce=clock,freq=2);
  302. aa=oscilator(fce=0,amp=6.28,freq=0.1);
  303. #
  304. vec=object(in=wirez,a=aa,b=aa,c=aa,obj=koule.vec,
  305. rr=16,gg=16,bb=16,frame=of,type=circle,z=-100);
  306. #
  307. sp=path(time=clk,type=linear_opened,num=2,y=255,0);
  308. output=screen(in=vec,shade=sp);
  309. #
  310. };
  311. ############ p_kola.plg ############
  312. p_kola.plg:script{
  313. <const.plg>
  314. #
  315. tb=texture(in=h2.png);
  316. tf=texture(in=h1.png);
  317. tt=texture(in=h3.png);
  318. pclk=oscilator(fce=clock,freq=0.2);
  319. pclk2=oscilator(fce=clock,freq=0.2,phase=0.5);
  320. clk=oscilator(fce=clock);
  321. ct=oscilator(fce=clock,freq=10);
  322. ot=oscilator(fce=clock,freq=20);
  323. #cls=mixer(op=clear,red=255,green=255,blue=255);
  324. cpy=mixer(tex=tb,op=copy);
  325. #
  326. io=path(time=clk,type=linear_closed,num=2,y=0,255);
  327. yp=path(time=clk,type=linear_opened,num=2,y=300,0);
  328. #
  329. cls=mixer(tex=s1,op=copy);
  330. tmix=mixer(in=twin,tex=tt,op=transluency,int=io);
  331. twin=window(in=rrwin,win=tmix,h=35);
  332. #
  333. transmix=mixer(in=cls,tex=tf,op=transparency,int=64);
  334. cls=window(in=twin,win=transmix,x=90,y=yp,w=130,h=205);
  335. #
  336. frm=path(time=pclk,type=linear_closed,num=2,y=0,7);
  337. yp=path(time=pclk,type=linear_opened,num=2,y=300,60);
  338. #
  339. rrart=art(id=0,in=rrwin,camera=1,name=kola.bzp,cf=ct,of=ot);
  340. rrwin=window(in=cpy,win=rrart,x=100,y=60,h=200);
  341. #
  342. wirez=cad(in=cls,ani=jerab.cad,fnt=num.fnt,
  343. x=-50,y=-30,scale=2,frame=frm,sg=128,fr=128,li=-128);
  344. #
  345. of=oscilator(fce=clock,freq=2);
  346. aa=oscilator(fce=0,amp=6.28,freq=0.1);
  347. #
  348. vec=object(in=wirez,a=aa,b=aa,c=aa,obj=bodak.vec,
  349. rr=16,gg=16,bb=16,frame=of,type=circle,y=-200,z=-100);
  350. #
  351. sp=path(time=clk,type=linear_opened,num=2,y=255,0);
  352. output=screen(in=vec,shade=sp);
  353. #
  354. };
  355. ############ p_zrcad.plg ############
  356. p_zrcad.plg:script{
  357. <const.plg>
  358. #
  359. tb=texture(in=gang1.png);
  360. tf=texture(in=gang2.png);
  361. tt=texture(in=gang.png);
  362. #
  363. pclk=oscilator(fce=clock,freq=0.2);
  364. pclk2=oscilator(fce=clock,freq=0.2,phase=0.5);
  365. clk=oscilator(fce=clock);
  366. ct=oscilator(fce=clock,freq=10);
  367. ot=oscilator(fce=clock,freq=20);
  368. #cls=mixer(op=clear,red=255,green=255,blue=255);
  369. cpy=mixer(tex=tb,op=copy);
  370. #
  371. io=path(time=clk,type=linear_closed,num=2,y=0,255);
  372. xp=path(time=clk,type=linear_opened,num=4,y=320,250,200,160);
  373. #
  374. cls=mixer(tex=s1,op=copy);
  375. tmix=mixer(in=twin,tex=tt,op=transluency,int=io);
  376. twin=window(in=rrwin,win=tmix,y=110,w=170,h=20);
  377. #
  378. transmix=mixer(in=cls,tex=tf,op=transparency,int=64);
  379. cls=window(in=twin,win=transmix,x=xp,w=160);
  380. #
  381. frm=path(time=pclk,type=linear_closed,num=2,y=0,4);
  382. yp=path(time=pclk,type=linear_opened,num=2,y=300,60);
  383. #
  384. rrart=art(id=3,in=rrwin,camera=1,name=zrcadlo.bzp,cf=ct,of=ot);
  385. rrwin=window(in=cpy,win=rrart,x=-80,y=100,h=200);
  386. #
  387. wirez=cad(in=cls,ani=kostka.cad,fnt=num.fnt,
  388. x=-25,y=-30,scale=3,frame=frm,sg=128,fr=128,li=-128);
  389. #
  390. of=oscilator(fce=clock,freq=2);
  391. aa=oscilator(fce=0,amp=6.28,freq=0.1);
  392. #
  393. vec=object(in=wirez,a=aa,b=aa,c=aa,obj=boxik.vec,
  394. rr=16,gg=16,bb=16,frame=of,type=circle,x=200,y=-200,z=-100);
  395. #
  396. sp=path(time=clk,type=linear_opened,num=2,y=255,0);
  397. output=screen(in=vec,shade=sp);
  398. #
  399. };
  400. ############ rr2.plg ############
  401. rr2.plg:script{
  402. <const.plg>
  403. #
  404. t1=texture(in=rr21.png);
  405. t2=texture(in=rr22.png);
  406. t3=texture(in=rr23.png);
  407. #
  408. clk=oscilator(fce=clock);
  409. io=oscilator(amp=128,add=128,freq=0.5);
  410. bo=path(time=clk,type=linear_opened,num=6,y=20,15,10,7,5,0);
  411. sp=path(time=clk,type=linear_opened,num=3,y=255,128,0);
  412. xp=path(time=clk,num=8,type=closed,y=-320,0,0,0,0,0,0,320);
  413. #
  414. bkg=mixer(tex=t1,op=copy);
  415. of=oscilator(fce=clock,freq=2);
  416. aa=oscilator(fce=0,amp=6.28,freq=0.1);
  417. trans=mixer(in=bkg,tex=t2,op=transluency,int=io);
  418. #
  419. rrmix=mixer(in=rrwin,tex=t3,op=sub,int=255);
  420. rrwin=window(in=trans,win=rrmix,x=xp);
  421. vec=object(in=rrwin,a=aa,b=aa,c=aa,obj=boxik.vec,
  422. rr=16,gg=16,bb=16,frame=of,type=circle,z=-100);
  423. #
  424. sp=path(time=clk,type=linear_opened,num=2,y=255,0);
  425. output=screen(in=vec,shade=sp);
  426. #
  427. };
  428. ############ sagvan.plg ############
  429. sagvan.plg:script{
  430. <const.plg>
  431. #
  432. clss=mixer(op=clear);
  433. #
  434. orgf=constant(k=0.4);
  435. alfa1=oscilator(fce=0,amp=6.28,add=0,freq=orgf,phase=0);
  436. alfa2=oscilator(fce=0,amp=6.28,add=0,freq=orgf,phase=0.78);
  437. alfa3=oscilator(fce=0,amp=6.28,add=0,freq=orgf,phase=1.57);
  438. alfa4=oscilator(fce=0,amp=6.28,add=0,freq=orgf,phase=2.35);
  439. alfa5=oscilator(fce=0,amp=6.28,add=0,freq=orgf,phase=3.14);
  440. alfa6=oscilator(fce=0,amp=6.28,add=0,freq=orgf,phase=3.92);
  441. alfa7=oscilator(fce=0,amp=6.28,add=0,freq=orgf,phase=4.70);
  442. alfa8=oscilator(fce=0,amp=6.28,add=0,freq=orgf,phase=5.48);
  443. #
  444. orgd=constant(k=700);
  445. dist0=oscilator(fce=1,amp=100,add=orgd,freq=0.25,phase=0);
  446. dist1=oscilator(fce=1,amp=150,add=orgd,freq=0.5,phase=0);
  447. dist2=oscilator(fce=1,amp=150,add=orgd,freq=0.5,phase=0.78);
  448. dist3=oscilator(fce=1,amp=150,add=orgd,freq=0.5,phase=1.57);
  449. dist4=oscilator(fce=1,amp=150,add=orgd,freq=0.5,phase=2.35);
  450. dist5=oscilator(fce=1,amp=150,add=orgd,freq=0.5,phase=3.14);
  451. dist6=oscilator(fce=1,amp=150,add=orgd,freq=0.5,phase=3.92);
  452. dist7=oscilator(fce=1,amp=150,add=orgd,freq=0.5,phase=4.70);
  453. dist8=oscilator(fce=1,amp=150,add=orgd,freq=0.5,phase=5.48);
  454. #
  455. #orgx=constant(k=45);
  456. orgx=path(time=pclk,num=14,y=-200,-160,-50,0,50,45,45,45,45,45,45,0,-50,-200);
  457. pap1=object(in=clss,obj=sag3.vec,x=orgx,y=120,z=dist1,a=-1.57,b=3.14,c=alfa1,type=vector);
  458. pap2=object(in=pap1,obj=sag3.vec,x=orgx,y=120,z=dist2,a=-1.57,b=3.14,c=alfa2,type=vector);
  459. pap3=object(in=pap2,obj=sag3.vec,x=orgx,y=120,z=dist3,a=-1.57,b=3.14,c=alfa3,type=vector);
  460. pap4=object(in=pap3,obj=sag3.vec,x=orgx,y=120,z=dist4,a=-1.57,b=3.14,c=alfa4,type=vector);
  461. pap5=object(in=pap4,obj=sag3.vec,x=orgx,y=120,z=dist5,a=-1.57,b=3.14,c=alfa5,type=vector);
  462. pap6=object(in=pap5,obj=sag3.vec,x=orgx,y=120,z=dist6,a=-1.57,b=3.14,c=alfa6,type=vector);
  463. pap7=object(in=pap6,obj=sag3.vec,x=orgx,y=120,z=dist7,a=-1.57,b=3.14,c=alfa7,type=vector);
  464. pap8=object(in=pap7,obj=sag3.vec,x=orgx,y=120,z=dist8,a=-1.57,b=3.14,c=alfa8,type=vector);
  465. kruh=object(in=pap8,obj=sag2.vec,x=orgx,y=120,z=dist0,a=-1.57,b=3.14,c=alfa1,type=vector);
  466. _s_=object(in=kruh,obj=sag_s.vec,x=orgx,y=120,z=dist0,a=-1.57,b=0,c=3.14,type=vector);
  467. #
  468. cls=mixer(op=clear);
  469. blurr=mixer(tex=_s_,op=transluency,int=128);
  470. bwin=window(in=cls,win=blurr,w=170);
  471. pclk=oscilator(fce=clock);
  472. pclk2=oscilator(fce=clock,phase=-10);
  473. spc=path(time=pclk,num=6,y=250,200,100,50,25,5);
  474. tx=path(time=pclk2,num=3,y=310,350,500);
  475. title=text(g=255,r=255,b=255,in=bwin,str=beyond_sagvan,
  476. x=tx,y=115,space=spc,org=right,font=winds.fnt);
  477. #
  478. output=screen(in=title);
  479. #
  480. };
  481. ############ sheepz.plg ############
  482. sheepz.plg:script{
  483. #
  484. <const.plg>
  485. #
  486. st=texture(in=sheepzt.png);
  487. s1=texture(in=sheepz1.png);
  488. s2=texture(in=sheepz2.png);
  489. #
  490. clk=oscilator(fce=clock,freq=0.5);
  491. #
  492. frm=path(time=clk,type=linear_closed,num=2,y=0,11);
  493. io=path(time=clk,type=linear_closed,num=2,y=0,255);
  494. yp=path(time=clk,type=linear_opened,num=8,y=300,0,0,0,0,0,0,300);
  495. #
  496. cls=mixer(tex=s1,op=copy);
  497. tmix=mixer(in=twin,tex=st,op=transluency,int=io);
  498. twin=window(in=cls,win=tmix,y=10,h=25);
  499. wirez=cad(in=twin,ani=thales.cad,fnt=num.fnt,x=30,y=-20,
  500. scale=3,frame=frm,sg=64,li=-128);
  501. transmix=mixer(in=trans,tex=s2,op=transparency);
  502. trans=window(in=wirez,win=transmix,y=yp);
  503. #
  504. sp=path(time=clk,type=linear_opened,num=2,y=255,0);
  505. output=screen(in=trans,shade=sp);
  506. #
  507. };
  508. ############ titles.plg ############
  509. titles.plg:script{
  510. <const.plg>
  511. #
  512. t1=texture(in=bronsc4.png);
  513. t2=texture(in=bronsc5.png);
  514. adder=texture(in=adder.png);
  515. deement=texture(in=deement.png);
  516. hellboy=texture(in=hellboy.png);
  517. redocs=texture(in=redocs.png);
  518. shakul=texture(in=shakul.png);
  519. tadder=texture(in=tadder.png);
  520. tdeement=texture(in=tdeement.png);
  521. thellboy=texture(in=thellboy.png);
  522. tredocs=texture(in=tredocs.png);
  523. tshakul=texture(in=tshakul.png);
  524. bronx=texture(in=bronx.png);
  525. nobel=texture(in=nobel.png);
  526. vedci=texture(in=vedci.png);
  527. #
  528. clk=oscilator(fce=clock);
  529. io=path(time=clk,type=linear_closed,num=2,y=0,255);
  530. io2=path(time=clk,type=linear_closed,num=8,y=255,128,0,0,0,0,128,255);
  531. io3=path(time=xclk,type=linear_closed,num=8,y=255,128,0,0,0,0,128,255);
  532. to=path(time=clk,num=8,y=0,128,250,250,250,250,128,0);
  533. clk40=oscilator(fce=clock,freq=0.025);
  534. xclk=path(time=clk40,type=linear_opened,num=2,y=0,40);
  535. xp=path(time=xclk,type=linear_closed,num=8,y=340,250,140,140,140,140,250,340);
  536. #
  537. bronxmix=mixer(in=bwin,tex=bronx,op=transluency,int=io2);
  538. vedcimix=mixer(in=b2win,tex=vedci,op=transluency,int=io2);
  539. b2win=window(in=trans,win=vedcimix,x=100,y=90,w=219,h=60);
  540. bwin=window(in=b2win,win=bronxmix,x=0,y=90,w=100,h=60);
  541. #
  542. bkg=mixer(tex=t1,op=copy);
  543. tfork=fork(time=clk,num=5,type=timer,
  544. s1=deement,s2=redocs,s3=hellboy,s4=adder,s5=shakul,
  545. t1=0,t2=8,t3=16,t4=24,t5=32);
  546. tsfork=fork(time=clk,num=5,type=timer,
  547. s1=tdeement,s2=tredocs,s3=thellboy,s4=tadder,s5=tshakul,
  548. t1=0,t2=8,t3=16,t4=24,t5=32);
  549. trans=mixer(in=bkg,tex=t2,op=transluency,int=io);
  550. twin=window(in=bwin,win=tfork,x=xp,y=42,w=112,h=156);
  551. nobelwin=window(in=twin,win=nobel,h=30);
  552. titlemix=mixer(in=titlewin,tex=tsfork,op=transluency,int=io3);
  553. titlewin=window(in=nobelwin,win=titlemix,y=210,h=30);
  554. #
  555. sp=path(time=clk,type=linear_opened,num=2,y=255,0);
  556. output=screen(in=titlewin,shade=sp);
  557. #
  558. };
  559. ############ zrcadlo.plg ############
  560. zrcadlo.plg:script{
  561. <const.plg>
  562. #
  563. clk=oscilator(fce=clock);
  564. ct=oscilator(fce=clock,freq=3);
  565. ot=oscilator(fce=clock,freq=20);
  566. rr=scene(fps=70,camera=0,xfov=128,yfov=128,name=zrcadlo,cf=ct,of=ot);
  567. sh=path(time=clk,type=linear_opened,num=2,y=-255,0);
  568. output:screen(in=rr,shade=sh);
  569. #
  570. };
  571.